this.view ={ extend: "base"}

this.handler = function(){
	
	var user = request.attr("user");
	
	this.get = function(){
		
		$("body").append("<p><textarea id='script-tag' cols=60 rows=10 readonly='readonly' onclick='this.focus(); this.select()' /></p>");
	 	
	 	$("#script-tag").text('<!-- BEGIN PLUGIN CODE //-->\n' +
	 		'<script type="text/javascript">\n'+
	 		'//<![CDATA[\n'+
	  		'document.write("<"+"script type=\'text/javascript\' src=\'");\n'+
			'document.write("/script?");\n'+
			'document.write("&amp;pid=' + user.publisherId + '");\n'+
			'document.write("&amp;url="+encodeURIComponent(document.location));\n'+
			'document.write("&amp;jq="+((window.jQuery&&jQuery.fn.jquery.replace(/\./g,"")>=126)?"1":"0"));\n'+
			'document.write("\'><"+"/script>");\n'+
			'//]]>\n'+
			'</script>\n'+
			'<!--// END PLUGIN CODE -->');	
	}


}
